If you have 5 years of consecutive legal stay in the Netherlands, you may be eligible to apply for a permanent Dutch residence permit. If you studied in the Netherlands, half of that study period will be counted towards the five years. Furthermore, you must have sufficient long-term income, you may not have a criminal record and you need to have passed the civic integration exam, unless an exception applies.