A slewing bearing (10, 50) comprising: an inner ring (11, 51) having an inner-ring-side rolling-element rolling surface (12, 52) on an outer peripheral surface; an outer ring (21, 61) having an outer-ring-side rolling-element rolling surface (22, 62) on an inner peripheral surface, and being arranged outside the inner ring (11, 51) such that the outer-ring-side rolling-element rolling surface (22, 62) faces the inner-ring-side rolling-element rolling surface (12, 52); and a plurality of rolling elements (31, 71) rollably disposed on a rolling-element rolling passage (28, 68) formed by the inner-ring-side rolling-element rolling surface (12, 52) and the outer-ring-side rolling-element rolling surface (22, 62), wherein the inner ring (11, 51) or the outer ring (21, 61) is configured to have combination of a press-worked part having a contour shape formed by pressing work, and a removal-processed part including at least the inner-ring-side rolling-element rolling surface (12, 52) or the outer-ring-side rolling-element rolling surface (22, 62), formed by removal processing, wherein the inner ring (11, 51) or the outer ring (21, 61) includes: a flat portion (13, 23) serving as a mounting reference for attachment to an external member; an erected portion (14, 24); and a curved portion (15, 25) connecting the flat portion (13, 23) and the erected portion (14, 24), and the inner-ring-side rolling-element rolling surface (12, 52) or the outer-ring-side rolling-element rolling surface (22, 62) is formed on the erected portion (14, 24); characterised in that the erected portion (14, 24) is erected in a direction perpendicular to the flat portion (13, 23). an inner ring (11, 51) having an inner-ring-side rolling-element rolling surface (12, 52) on an outer peripheral surface; an outer ring (21, 61) having an outer-ring-side rolling-element rolling surface (22, 62) on an inner peripheral surface, and being arranged outside the inner ring (11, 51) such that the outer-ring-side rolling-element rolling surface (22, 62) faces the inner-ring-side rolling-element rolling surface (12, 52); and a plurality of rolling elements (31, 71) rollably disposed on a rolling-element rolling passage (28, 68) formed by the inner-ring-side rolling-element rolling surface (12, 52) and the outer-ring-side rolling-element rolling surface (22, 62), wherein the inner ring (11, 51) or the outer ring (21, 61) is configured to have combination of a press-worked part having a contour shape formed by pressing work, and a removal-processed part including at least the inner-ring-side rolling-element rolling surface (12, 52) or the outer-ring-side rolling-element rolling surface (22, 62), formed by removal processing, wherein the inner ring (11, 51) or the outer ring (21, 61) includes: a flat portion (13, 23) serving as a mounting reference for attachment to an external member; an erected portion (14, 24); and a curved portion (15, 25) connecting the flat portion (13, 23) and the erected portion (14, 24), and the inner-ring-side rolling-element rolling surface (12, 52) or the outer-ring-side rolling-element rolling surface (22, 62) is formed on the erected portion (14, 24); characterised in that the erected portion (14, 24) is erected in a direction perpendicular to the flat portion (13, 23). a flat portion (13, 23) serving as a mounting reference for attachment to an external member; an erected portion (14, 24); and a curved portion (15, 25) connecting the flat portion (13, 23) and the erected portion (14, 24), and the inner-ring-side rolling-element rolling surface (12, 52) or the outer-ring-side rolling-element rolling surface (22, 62) is formed on the erected portion (14, 24); characterised in that the erected portion (14, 24) is erected in a direction perpendicular to the flat portion (13, 23).