What is the difference between raw and jpeg images?

I am a beginner at photography and I can’t really understand what a raw image is and how it is different from jpeg?
How is an image manipulated before processing?