Three strikes and he wasn't out.

At the beginning of his 32-year career as a math teacher in Queens, Francisco Olivares allegedly impregnated and married a 16-year-old girl he had met when she was a 13-year-old student at his Corona junior high, IS 61, The Post learned.

He sexually molested two 12-year-old pupils a decade later and another student four years after that, the city Department of Education charged.

But none of it kept Olivares, 60, from collecting his $94,154 salary.

He hasn't set foot in a classroom in seven years since beating criminal and disciplinary charges. Chancellor Joel Klein keeps Olivares in a "rubber room," a district office where teachers accused of misconduct sit all day with nothing to do.

The DOE insists it can't get rid of him. "The department's hands are tied by state law and union rules," said spokeswoman Ann Forte.

She said tenured teachers can be fired only if an arbitrator approves.

"The department twice tried to terminate this teacher, and both times, an arbitrator decided to keep him on the payroll," she said.

Click here to read more on this story from NYPost.com.