heres a breif explaination of the process.

Decarboxylation :This occurs after buds are harvested and during the curing process. The THC loses a CO2 molecule, which then makes the THC psychoactive. This process is why drying and curing buds after harvest is crucial to the high that the bud produces.