A nut is a hard-shelled fruit of some plants. They are an important part of the diet. Many dried seeds and fruits are called 'nuts' in English, but only some are nuts to a botanist.
Nuts are made of the seed and the fruit. Most seeds come from fruits, and the seeds are released from the fruit. But nuts have a stony fruit wall which keeps the seed inside.