Giving WordPress Its Own Directory « WordPress Codex

Some people want their WordPress URL to coincide with their website’s root (e.g. http://example.com) but they don’t want all of the WordPress files cluttering up their root directory. WordPress allows you to install it into a subdirectory, but have your website served from the website root.

Source: Giving WordPress Its Own Directory « WordPress Codex