A sunroof device comprising: a functional bracket configured to support a lateral edge of a movable panel that opens and closes an opening formed in a roof portion of a vehicle; a guiderail configured to be located at a lateral edge of the opening and extend in the front-rear direction of the vehicle; a drive cable that includes driving teeth aligned in a longitudinal direction, wherein the drive cable is driven to move along the guiderail in the front-rear direction of the vehicle; a sliding member that is linked to the functional bracket and arranged to be movable in the front-rear direction of the vehicle along the guiderail, wherein the sliding member controls a position of the functional bracket together with the movable panel when moving in the front-rear direction of the vehicle; driven teeth formed on the sliding member, wherein the driven teeth are meshed with the driving teeth and restrict relative movement of the drive cable and the sliding member in the front-rear direction of the vehicle; and a mounted portion (14, 15) formed on the guiderail, wherein the drive cable and the sliding member, in which the driving teeth are meshed with the driven teeth, are mounted on the mounted portion (14, 15), and the mounted portion (14, 15) holds the drive cable and the sliding member in the lateral and vertical directions of the vehicle, the sunroof device being characterized in that it comprises a slot, which is formed in a heightwise edge of the drive cable and opens in the lateral direction of the vehicle; and a positioning protrusion, which protrudes from the sliding member in the lateral direction of the vehicle opposed to the slot and is fitted to the slot when the driving teeth are meshed with the driven teeth. a functional bracket configured to support a lateral edge of a movable panel that opens and closes an opening formed in a roof portion of a vehicle; a guiderail configured to be located at a lateral edge of the opening and extend in the front-rear direction of the vehicle; a drive cable that includes driving teeth aligned in a longitudinal direction, wherein the drive cable is driven to move along the guiderail in the front-rear direction of the vehicle; a sliding member that is linked to the functional bracket and arranged to be movable in the front-rear direction of the vehicle along the guiderail, wherein the sliding member controls a position of the functional bracket together with the movable panel when moving in the front-rear direction of the vehicle; driven teeth formed on the sliding member, wherein the driven teeth are meshed with the driving teeth and restrict relative movement of the drive cable and the sliding member in the front-rear direction of the vehicle; and a mounted portion (14, 15) formed on the guiderail, wherein the drive cable and the sliding member, in which the driving teeth are meshed with the driven teeth, are mounted on the mounted portion (14, 15), and the mounted portion (14, 15) holds the drive cable and the sliding member in the lateral and vertical directions of the vehicle, the sunroof device being characterized in that it comprises a slot, which is formed in a heightwise edge of the drive cable and opens in the lateral direction of the vehicle; and a positioning protrusion, which protrudes from the sliding member in the lateral direction of the vehicle opposed to the slot and is fitted to the slot when the driving teeth are meshed with the driven teeth.