This paper considers discounted aggregate claims when the claim rates and sizes fluctuate according to the state of the risk business. We provide a system of differential equations for the Laplace–Stieltjes transform of the distribution of discounted aggregate claims under this assumption. Using the differential equations, we present the first two moments of discounted aggregate claims in a Markovian environment. We also derive simple expressions for the moments of discounted aggregate claims when the Markovian environment has two states. Numerical examples are illustrated when the claim sizes are specified.