In this paper, we consider the Markov-modulated insurance risk model with tax. We assume that the claim inter-arrivals, claim sizes and premium process are influenced by an external Markovian environment process. The considered tax rule, which is the same as the one considered by Albrecher and Hipp [Blätter DGVFM 28(1):13-28, 2007], is to pay a certain proportion of the premium income, whenever the insurer is in a profitable situation. A system of differential equations of the non-ruin probabilities, given the initial environment state, are established in terms of the ruin probabilities under the Markov-modulated insurance risk model without tax. Furthermore, given the initial state, the differential equations satisfied by the expected accumulated discounted tax until ruin are also derived. We also give the analytical expressions for them by iteration methods.