Legislature is a word that comes from the Latin language, meaning "those who write the laws." A legislature is therefore a group of people who vote for new laws, for example in a state or country.
Each person in the legislature is usually either elected or appointed. The constitution of that state or country usually tells how a legislature is supposed to work.