Through the investigation, in this work, we focused at the steady flow of a Casson-Williamson fluid due to an stretchable, impenetrable sheet with Ohmic dissipation. It is assumed that the impermeable stretched sheet is incorporated into a porous media and has a rough surface. The porous media through which the non-Newtonian fluid is flowing are supposed to obey Darcy’s law. Magnetic and electric fields’ impacts are considered. We investigate how the process of heat transfer is affected by viscous dissipation and varying thermal conductivity. On the basis of a little magnetic Reynolds number, the controlling basic equations are represented by a system of nonlinear ordinary differential equations. The shooting technique is used to get a numerical solution for this system, which controls both the temperature and velocity fields. Graphical representations of the impact of various parameters on the velocity and temperature profiles are shown. Regarding the significant results, we note that the local electric parameter tends to improve both the velocity and temperature fields, while the porous parameter, Casson parameter and slip velocity parameter decrease the velocity profiles.