Ambrisentan is used for the treatment of pulmonary arterial hypertension, a condition in which blood pressure rises due to narrowing of the arteries supplying blood from the heart to the lungs.