This is an irregular verb. It follows the conjugation pattern of the verb ficar.
Present:
A Ana tranca a porta todas as noites.
Ana locks the door every night.
Preterite:
O Miguel trancou o carro antes de sair.
Miguel locked the car before leaving.
Conditional:
A Clara trancaria tudo com cuidado.
Clara would lock everything carefully.