A person having a lien upon real property, other than that of a judgment, whether created by mortgage or otherwise, to secure a debt or other obligation may bring an action to foreclose the lien. In the action, the court may direct the sale of the encumbered property or a portion of it and the application of the proceeds of the sale to the payment of costs, expenses of sale, and the amount due the plaintiff. The judgment shall also determine the personal liability of a defendant for the payment of the debt secured by the lien and be entered accordingly.
AS 09.45.170