A bioinspired scaffold is fabricated by a soft photolithography technique using mechanically robust and electrically conductive hydrogels. The micropatterned hydrogels provide directional cardiomyocyte cell alignment, resulting in a tailored direction of actuation. Flexible microelectrodes are also integrated into the scaffold to bring electrical controllability for a self-actuating cardiac tissue.