Motorists may not see the bicycle. Ride a well-equipped bike. Be sure your bike adjusted to fit you properly. For safety and efficiency, outfit it with bells, rear-view mirrors, rack or baskets, lights and reflectors. Look back before you pass or merge.
Some riders also use rear-view mirrors.
Leave a good 3-4 feet when passing a pedestrian bicyclist. Buy a bike lock that is appropriate and use it correctly. Proper use requires the removal of the front wheel in order to secure both wheels and frame. Lay the front wheel alongside the rear wheel and loop the U around both wheels and frame of your bike. If the U portion of the lock is completely filled with the wheels and frame, the lock has less of chance of being broken apart.