Diastatic power is a measure of the enzymatic activity in malted grains, specifically the ability to convert starches into fermentable sugars. It matters in brewing because it sets how much sugar the mash extracts.
The diastatic power of malt is typically expressed in degrees Windisch-Kolbach (°WK, primarily used in Europe) or degrees Lintner (°L, primarily used in North America). Higher diastatic power means more starch converts to sugar, which can mean more alcohol and a healthier fermentation.
Malts are typically separated into two categories based on their diastatic power: base malts and specialty malts. Base malts have a high diastatic power and are used as the primary source of fermentable sugars in a beer recipe. Specialty malts have a lower diastatic power and are used to add flavor, color, and aroma to the beer. To convert the starch in roasted specialty malts you need enough base malt alongside them.