Skip to main content

の or を? What is the correct answer and why is it correct?

This is a question that I have found in a JLPT-N5 mock test paper.

弟はへや___そうじをしました。

And the answer for that is の, but I selected を. Could someone possibly clarify this please? Why の and why not を? What is wrong if one puts を there?