Seal around pipes using steel wool, caulking, or expanding foam to prevent mice from entering.