The 3rd Amendment was designed to stop the practice of quartering soldiers in private homes in time of peace and in time of war only in a manner prescribed by law. The British had forced private citizens to house British soldiers regardless of whether they wanted to or not.

More Info: en.wikipedia.org