How do we ‘know’ something?

How do we define knowledge? And how does knowing something is true differ from just thinking that it is true?