contestada

In the sentence: "I think the waiter forgot to charge me." The "to" is used as a preposition or to leave the verb in the infinitive, help me please. Yes, i am foreign xd