An Application Master (AM) is a per-application daemon to look after the lifecycle of the job.
For instance, in Spark, it's called the driver
The Application Master daemon is created when an application is started in the very first container.
The AM:
It has the responsibility to provide a web UI and to send that link to the RM.
During application launch time, the main tasks of the ApplicationMaster are: