To lock an electric scooter, use a sturdy lock to secure it to a fixed object like a bike rack. Activate any built-in security features if available.