The prostate is a compound tubuloalveolar exocrine gland of the male reproductive system in most mammals.