You must have an unconditional offer of a place on a course with a licensed student sponsor.
To prove this, your education provider will send you a reference number (called a Confirmation of Acceptance for Studies (CAS)) once they’ve offered you a place on the course. You need a CAS before you can apply for your visa.