Hello arun, and welcome to the forums.
Here is one way to think of it:
If A is made FROM B, B is changed in some way to create A. The grapes are processed to make wine.
If A is made OF B, B is assembled, glued, sewn, cut and pasted, or put together in some way to create A. The shirt is made directly from cotton.
If someone took grapes and made them into a sculpture, the sculpture would be made OF grapes.
Sometimes the words are used interchangeably, however, so the rule is a bit too simple.
Student or Learner