Mobile agents are autonomous software programs that can migrate between systems or hosts. They perform processing tasks at each host and decide autonomously when and where to move next. Mobile agents allow for asynchronous and distributed processing without needing a centralized server by migrating code and data between hosts as needed.