What's the relationship of Chinese and Japanese

Japanese originated from Chinese. They share some of the same Chinese characters.