The Japanese writing consists of three systems:
Kanji is the main body of Japanese writing system, which was developed from Chinese characters through history of the two countries. There are about 2000 Kanji used in Japanese.
Hiragana is their original writing system, which is used for writing -non-kanji parts of the language, such as 'particles', 'auxiliary verbs' and 'okurigana' (inflection of different words, esp verbs].
Katakana was developed as a system to write foreign words, and contains writing of syllables whose pronunciations are non-existent to the main Japanese language, such as 'fa, fi, wu, di, je, she, etc'. Katakana is also used in Japanese the way we use italics in English.