Dogs urine mark both indoors and outdoors for two primary reasons: to define and redefine territory or secondary to anxiety issues, according to Alice Moon-Fanelli, Ph.D., certified applied animal behaviorist at Animal Behavior Consultations. Territorial marking and anxiety, however, are not necessarily mutually exclusive.