Mechanical seal for sealing at least one fluid-carrying channel and/or space extending in a stationary component and/or a rotating component from the environment, having a mechanical seal ring which is supported in a sealing manner in the axial direction against a mating ring and, to compensate for wear on its end sealing surface or on a mating face, is supported elastically and movably in the axial direction with this sealing surface against the mating ring; having a housing which movably accommodates the mechanical seal ring in the axial direction and encloses the mechanical seal ring with a circumferential part (6.1) in the peripheral direction; wherein the housing has a flange (6.2) adjoining the circumferential part (6.1) in the axial direction, wherein the flange (6.2) forms at least one radially inwardly facing projection and the mechanical seal ring comprises a stop face which is opposite the radially inwardly facing projection in the axial direction and with which the mechanical seal ring strikes against the projection during a maximum permissible movement in the axial direction in direction out of the housing, and the flange (6.2) forms at least one radially outwardly facing projection; characterized in that the flange (6.2) is designed integrally with the circumferential part (6.1) or is connected to the latter in a material-bonded manner; the flange (6.2) can be connected or is connected non-rotatably to one of the two components (2, 3) receiving the housing; and the mechanical seal has a position sensor for detecting the position of the mechanical seal ring in the axial direction, having an encoder fixed to the mechanical seal ring and moving with the mechanical seal ring in the axial direction, and having a stationary sensor which is positioned radially outside the circumferential part (6.1) and detects the position of the encoder in the axial direction, wherein the sensor is supported by the circumferential part (6.1) and/or by the flange (6.2). having a mechanical seal ring which is supported in a sealing manner in the axial direction against a mating ring and, to compensate for wear on its end sealing surface or on a mating face, is supported elastically and movably in the axial direction with this sealing surface against the mating ring; having a housing which movably accommodates the mechanical seal ring in the axial direction and encloses the mechanical seal ring with a circumferential part (6.1) in the peripheral direction; wherein the housing has a flange (6.2) adjoining the circumferential part (6.1) in the axial direction, wherein the flange (6.2) forms at least one radially inwardly facing projection and the mechanical seal ring comprises a stop face which is opposite the radially inwardly facing projection in the axial direction and with which the mechanical seal ring strikes against the projection during a maximum permissible movement in the axial direction in direction out of the housing, and the flange (6.2) forms at least one radially outwardly facing projection; characterized in that the flange (6.2) is designed integrally with the circumferential part (6.1) or is connected to the latter in a material-bonded manner; the flange (6.2) can be connected or is connected non-rotatably to one of the two components (2, 3) receiving the housing; and the mechanical seal has a position sensor for detecting the position of the mechanical seal ring in the axial direction, having an encoder fixed to the mechanical seal ring and moving with the mechanical seal ring in the axial direction, and having a stationary sensor which is positioned radially outside the circumferential part (6.1) and detects the position of the encoder in the axial direction, wherein the sensor is supported by the circumferential part (6.1) and/or by the flange (6.2).