Dear Hemon,
It is an adjectival infinitive.
An adjectival infinitive describes a noun. It must follow the noun that it describes. Here is an example:
"That is the best thing to do."
«Thing» is the noun. «To do» is the adjectival infinitive.
Kind regards,
Goldmund