Preparation of two new steroidal heterocyclic compounds derived from testosterone and pregnenalone was described. The structure of new products was elucidated by spectroscopic methods. The products were examined for their biological activity against bacteria and fungi and their results were compared with standard antibiotics.