They were absent _____ the class.

They were absent _____ the class.

Explanation

The correct preposition is "from" because it indicates being away or not present in a specific place, in this case, the class.

The phrase should read: "They were absent from the class."