Why we use fragments in Android activity

What is the difference between a fragment and an activity? Explain the relationship between the two.

What is fragment?

What are the core building blocks of android?