The Affenpinscher is believed to have originated in Germany during the 17th century as a ratter and companion dog.