What form of Verb is the underlined word?

They had worked hard to gain the respect.

Present Participle form

Present form

Past Participle form

Past form