The TIE is renewed when the linked residence authorisation expires. The renewal window is: 60 days before expiry to 90 days after. If you renew within this window, your authorisation is automatically extended while the renewal is being processed.
Documents for renewal: valid passport, current TIE (copy of both sides), new photo, updated registration certificate if you changed address, and proof of payment of fee 790 code 012 (€19.30 for temporary residence, €21.87 for long-term).
If you let more than 90 days pass after expiry, you may lose your residence authorisation and fines range from €500 to €1,000.