A slewing bearing comprising: an inner ring having an inner-ring-side rolling-element rolling surface on an outer peripheral surface; an outer ring having an outer-ring-side rolling-element rolling surface on an inner peripheral surface, and being arranged outside the inner ring such that the outer-ring-side rolling-element rolling surface faces the inner-ring-side rolling-element rolling surface ; and a plurality of rolling elements rollably disposed on a rolling-element rolling passage formed by the inner-ring-side rolling-element rolling surface and the outer-ring-side rolling-element rolling surface , wherein the inner ring or the outer ring 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 or the outer-ring-side rolling-element rolling surface , formed by removal processing, wherein the inner ring or the outer ring includes: a flat portion serving as a mounting reference for attachment to an external member; an erected portion ; and a curved portion connecting the flat portion and the erected portion , and the inner-ring-side rolling-element rolling surface or the outer-ring-side rolling-element rolling surface is formed on the erected portion ; characterised in that the erected portion is erected in a direction perpendicular to the flat portion . an inner ring having an inner-ring-side rolling-element rolling surface on an outer peripheral surface; an outer ring having an outer-ring-side rolling-element rolling surface on an inner peripheral surface, and being arranged outside the inner ring such that the outer-ring-side rolling-element rolling surface faces the inner-ring-side rolling-element rolling surface ; and a plurality of rolling elements rollably disposed on a rolling-element rolling passage formed by the inner-ring-side rolling-element rolling surface and the outer-ring-side rolling-element rolling surface , wherein the inner ring or the outer ring 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 or the outer-ring-side rolling-element rolling surface , formed by removal processing, wherein the inner ring or the outer ring includes: a flat portion serving as a mounting reference for attachment to an external member; an erected portion ; and a curved portion connecting the flat portion and the erected portion , and the inner-ring-side rolling-element rolling surface or the outer-ring-side rolling-element rolling surface is formed on the erected portion ; characterised in that the erected portion is erected in a direction perpendicular to the flat portion . a flat portion serving as a mounting reference for attachment to an external member; an erected portion ; and a curved portion connecting the flat portion and the erected portion , and the inner-ring-side rolling-element rolling surface or the outer-ring-side rolling-element rolling surface is formed on the erected portion ; characterised in that the erected portion is erected in a direction perpendicular to the flat portion . <EOS>