Preheat oven to 350° F. Prep baking pan by lining with foil.
Peel shallots, place on baking pan. Cut tops off whole garlic heads so that the cloves are partially exposed and place on baking pan. Drizzle all with oil, cover baking pan with foil and bake at 350° F for 15 minutes.
Increase temperature of oven to 400° F and finish roasting for additional 20-30 minutes or until just golden brown. Remove from oven and let cool.
While the shallots and garlic are roasting, place dried chilies in water, just to cover tops, and soak for 15-20 minutes to re-hydrate. Drain water.
After everything has roasted and cooled place all ingredients into a food processor and puree until paste forms.
Scoop into airtight container and store in refrigerator for up to one week or in the freezer for 3-6 months, until ready to use.
Notes
This recipe makes enough curry paste for 4 batches of your favorite curry recipes.Adapted from Pinch of Yum