What shows an animals territorial behaviors?

is when they mark theyr territory ( like u do with wour room ) and if u get on theyr territory they attack ,because in our human world thieves, because they think u want to harm them or to destroy theyr habitatat

hope it works ^_^