Hyperthermia is one of the first applications of nanotechnology in medicine by using micro/nano magnetic particles that acts based on the heat of ferric oxide nanoparticles or quantum dots in an external alternating magnetic field. In this study, a two-dimensional model of body and tumor tissues imbedded was considered. Initially, the temperature distribution was obtained with respect to tumor properties and without the presence of an electromagnetic field. Then, the effect the electromagnetic field on the temperature distribution was studied. The results have been compared with other papers. These results indicated that the use of the electromagnetic field causes a significant rise in the tumor temperature; however, the risk of damage to the healthy tissues surrounding the cancerous tissue seems to be high. Then, the micro/nanoparticles were injected into the tumor tissue to focus energy on cancerous tissue and maximally transfer the heat onto this tissue. The temperature distribution in the state was compared with the case without the nanoparticles and other numerical works. The results demonstrated that with the injection of nanoparticles into the tumor, the maximum temperature location was transferred to the center of the tumor and also increases to 6°C. After determining the temperature distribution in the presence of nanoparticles, the effects of different variables of the problem were studied. According to the obtained results, the increase in the concentration and radius of nanoparticles have a positive effect on the temperature distribution in the tissue; on the other hand, the increase in the frequency and size of the electrodes have a negative effect. The relevant equations were solved numerically using the finite difference method.