Where Did Dogs Originate from?

Dogs have been around for thousands of years and were used as protection in ancient times. It is pretty widely accepted that they derived from wolves although that is sometimes a debate.