Stepanek is cheered on by girl friend and WTA player Nicole Vaidisova.
Federer came back from a break down twice in the second set to push it into tie-break.
But he was unable to capitalise on two mini-breaks in the tiebreak and will now have to wait at least another year for his first Rome title.