SPSite represents the top level site or the collection of sites
SPWeb represents the instance of a site, SPWeb contains all the content of a site.
See the below example:
SPSite MySiteCollection = new SPSite(http://servername/);
SPWeb MyWeb = MySiteCollection.AllWebs("Site Name");