If you have lived in Estonia for five years consecutively based on the temporary residence right, you can become its permanent resident. In some instances, you can get it earlier.