There are three different branches of our government. Legislative Branch ( Which writes the laws) ;the Executive Branch ( Who carries out the laws); and the Judicial Branch (Which reviews the ways laws are applied).
So the legislative branch writes the bills that become laws.