As far as I know, MSAL.NET (Microsoft.Identity.Client) is an authentication library which enables you to acquire tokens from Azure AD, to access protected Web APIs (Microsoft APIs or applications registered with Azure Active Directory). MSAL.NET is available on several .NET platforms. That means MASL is a library to acquire tokens from Azure AD. If you want to protect an web api, you should refer to this article.
If you want to use MSAL to get token and access API, you could refer to this article's sample to get how to do it.
If you want to know how to use AAD protect your web api, you could refer to this article's sample.