PROBLEM TO BE SOLVED: To provide a rail fixing member capable of being applied to a structure for attaching a functional member to a roof.SOLUTION: A rail fixing member 11 is used to fix a rail 5 for attachment of a functional member 4 to a roof to the roof 3. The rail fixing member 11 comprises a base part 11a for being loaded with the rail 5, and a fixing part 11c for being fixed to a top surface of a crest part 1 of the roof 3. Leg parts 11b protruding downward are provided at front and rear ends of the base part 11a, respectively. The fixing part 11c is provided at a lower end of each leg part 11b in the state of protruding toward the other side of the base part 11a.【課題】屋根への機能性部材の取付構造に適用可能なレール固定部材を提供する。【解決手段】機能性部材4を屋根に取り付けるためのレール5を屋根3に固定するためのレール固定部材11に関する。レール5が載置されるベース部11aと、屋根3の山部1の上面に固着される固着部11cとを備える。ベース部11aの前端と後端には下方に向かって突出する脚部11bが設けられる。固着部11cは各脚部11bの下端にベース部11aと反対側に向かって突出して設けられている。【選択図】図1