Learner's definition of PREREQUISITE
something that you officially must have or do before you can have or do something else
— often + for or to
Citizenship is a prerequisite for voting.
The introductory course is a prerequisite for the advanced-level courses.
Having good credit is a prerequisite to applying for a loan.