Used to express apology.
Tosiento no haber podido asistir a tu fiesta de cumpleaños.
I'm sorry I couldn't attend your birthday party.
Tosiento por no haber llegado a tiempo a la reunión.
I'm sorry for not having arrived on time to the meeting.