Legislation is the act or process of making or enacting laws. Some people think there should be more legislation in the area of education and some people think there should be less — governments debate the matter periodically.
The noun legislation refers to the actual law enacted by a legislative body at the national, state, or local level. There has been some very odd legislation over the years. In one state it was illegal to kiss on a train; in another, it was illegal to take a bath on Sunday. The sweeping legislation made radical changes to tax law, health care, and immigration law.