Despite substantial interest, most of the two-dimensional (2D) materials are not magnetic in their pristine form. Several standard approaches, such as adsorption of atoms, introduction of point defects, and edge engineering, have been developed to induce magnetism in two-dimensional materials. In this way, we investigate the electronic and magnetic properties of monolayer TiS2 doped with 3d transition metals (TMs) atoms in both octahedral 1T and trigonal prismatic 1H structures using first-principles calculations. In its pristine form, TiS2 is a non-magnetic semiconductor. The bands near the Fermi energy primarily exhibit d orbital characters, and due to the presence of ideal octahedral and trigonal arrangements, they are well separated from other bands with p character. Upon substituting 3d-TM atoms in both structures, a variety of electronic and magnetic phases emerge, including magnetic semiconductor, magnetic half-metal, and magnetic metal. Chromium exhibits the largest magnetic moment in both the 1T and 1H structures. The 1T structure shows a slightly higher magnetic moment of 3.4 μB compared to the 1H structure 3.1 μB, attributed to the distorted octahedral structure of the 1T structure. Unlike pristine TiS2, the deficiency in saturation of neighboring S atoms in the presence of impurities leads to the proximity of energy levels of d and p states, resulting in unexpectedly sizeable magnetic moments. Another interesting case is Cobalt, which leads to a magnetic moment of approximately 0.8 μB in the 1H structure, while the Co exhibits a non-magnetic state in the 1H structure. These materials demonstrate a high degree of tunability and can be optimized for various magnetic applications.