Select a silicone/acrylic caulk color that closely matches the medicine cabinet or wall paint. You can also opt for a clear caulk.
Insert the tube of caulk into the caulking gun with the nozzle facing away from you. Squeeze the trigger on the gun two to three times to tighten it against the tube.
Cut off the end of the plastic nozzle at a 45-degree angle, using scissors.
Place the tip of the caulking gun on top of the medicine cabinet where the rear of it meets the wall. Angle the gun so the caulk tube is at a 30-degree angle to the cabinet.
Squeeze the trigger on the caulking gun to begin applying a 1/4-inch-wide bead of caulk. Pull the tip along the entire top edge of the medicine cabinet until you reach the other side, then release the trigger.
Rub your finger along the length of the caulk bead and wipe excess on a paper towel.
Dampen a sponge with water, wring it out and wipe down the caulk line gently. Turn the sponge over and wipe the caulk line again.
Repeat the process to caulk the sides and bottom edges of the recessed medicine cabinet.