This lecture discusses the interplay between magnetogenesis and baryogenesis in the context of pseudoscalar inflation. It begins with an introduction to the significance of magnetic fields and baryon asymmetry generated just after inflation. The instructor presents a naive guess regarding baryogenesis from hypermagnetic helicity decay, addressing the baryon isocurvature problem and the potential cancellation by chiral anomaly. The lecture further explores the dynamics of helical hypermagnetic fields, their evolution, and their role in generating baryon asymmetry in the universe. The instructor emphasizes the importance of magnetic helicity as a conserved quantity and its implications for baryon asymmetry. The discussion includes observational constraints on baryon isocurvature perturbations and the effects of electroweak symmetry breaking on the evolution of magnetic fields. The lecture concludes with a summary of the findings and their relevance to current cosmological models, highlighting the potential for future research in this area.