The machine.config file is the master configuration file on your system with a lot of default settings. Web.config is the file for the local settings to be applied for a website which store configuration data in XML format.
The machine.config would be to share values between many applications on the server such as SMTP server settings while Web.config files contain application specific items such as database connection strings.
More about.......
Difference between Machine.config and web.config
William