In this paper, we consider the Markov-modulated insurance risk model with tax. We assume that the claim inter-arrivers, claim sizes and premium process are influenced by an external Markovian environment process. The considered tax rule, which is the same with the one considered by Albrecher and Hipp [Albrecher, H., Hipp, C., 2007. Lundberg's risk process with tax. Blatter der DGVFM 28(1), 13-28], 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.