The part of the Constitution that establishes the legislative branch of the government is the Article I of the Constitution.
In this Article in the US Constitution, Congress serves as the legislative branch of the government and is given a limit to its powers. An example of this power is that Congress are the ones tasked to make laws for the United States of America.