Is this sentence is correct?

He wanted to polish his shoes, for it were covered with mud. or else replace it with they.

Use "they" -- yes.