This section (Article I, Section 8, clause 17 of the Constitution) anticipated the creation of the District of Columbia, and also insured that federal law applies to all Federal buildings and military installations, regardless of the state in which they are located."
."The Congress shall have power ... to exercise exclusive legislation in all cases whatsoever, over such district (not exceeding ten miles square) as may, by cession of particular States, and the acceptance of Congress, become the seat of the government of the United States, and to exercise like authority over all places purchased by the consent of the legislature of the State in which the same shall be, for the erection of forts, magazines, arsenals, dock-yards, and other needful buildings."