Provided is a
fluorine-containing
ether compound represented by the following formula. R1—R2—CH2—R3[—CH2—R4—CH2—R3]n—CH2—R5—R6 (n represents an integer of 0 to 2, R3 represents a
perfluoropolyether chain, R4, R2, and R5 represent a
divalent linking group having one or more polar groups, R2 and R5 have an
oxygen atom at an end bonded to R1 or R6, R1 and R6 represent an
organic group having 1 to 50 carbon atoms or a
hydrogen atom, at least one of R1 or R6 is represented by Formula (2), one of X and Y represents C═O, and the other represents —NH—, —NR7— (R7 represents a
hydrocarbon group having 1 to 8 carbon atoms), or —O—, Q represents a 5- to 8-membered heterocyclic ring structure, which is formed of a
carbon atom of a linking group indicated by a dashed arc together with X and Y, and Z represents 0 to 5 substituents.)