Why was the White House Built?

The White House was built for the purpose of making it the official residence of the President of the United States. It took nearly 10 years to complete the construction after the project it was approved by Congress.