How to Restore Factory Settings on a Sony Xperia Z Smartphone?

I am having trouble with this phone, would like to restore the phone to full "Default Factory Settings" and start again from the beginning, it worked fantastic at first so I think it was something I messed with Settings wise. Please help and Thank You in Advance.

?2013-07-31T14:44:34Z

Favorite Answer

settings- privacy- factory data reset. good luck