A sports camera having a lens (1) stabilization function comprises a lens (1) and an image sensor (3) disposed behind the lens (1). The image sensor (3) is electrically connected to an image circuit (6-2). The sports camera further comprises two motors in spatial orthogonal distribution, magnetic encoders, and a motor control circuit (6-1). The two motors are an X-axis motor (4-2) for controlling pitching movement and a Y-axis motor (4-1) for controlling roll movement. A rotor output shaft of the X-axis motor (4-2) is connected to a stator of the Y-axis motor (4-1). An attitude plate (2) is connected to a side surface of the image sensor (3) and is connected to the stator of the Y-axis motor (4-1). The image sensor (3) is connected to the rotor of the Y-axis motor (4-1). There are two magnetic encoders. The sports camera can satisfy photographing requirements of a user in sports activities, and the user can take a good picture or make a good video without needing to keep the camera still or always keep the camera moving at the same speed of a moving object.