There was nothing for it to fight. How the infinitive is used in the sentence

It's an adjective modifying "nothing."

In the given sentence, the infinitive "to fight" is used as a noun. Infinitives are verb forms that typically begin with the word "to" in English. They can be used in different ways, including as nouns, adjectives, or adverbs.

In this case, "to fight" is functioning as the direct object of the verb "was." It answers the question "what" or "whom" after the verb. It expresses what the subject had nothing to do or engage in combat with.

To identify the infinitive in a sentence, you can ask yourself what the purpose of the verb is. In this sentence, "to fight" is the purpose or the action that is being negated by the subject.

So, in summary, the infinitive "to fight" is used as a noun here, serving as the direct object of the verb "was" and expressing the action or activity that the subject lacks or has nothing to do with.