OPINION
ZAPPALA, Justice.We granted allocatur to address the issue of whether an insurance carrier has a duty to defend and possibly indemnify an insured pharmacist against a claim that is based upon his distribution of controlled substances, when the insurance poli*537cy explicitly excludes coverage for bodily injuries which are a consequence of “knowing endangerment” by the pharmacist. We hold that the carrier has neither a duty to defend nor a duty to indemnify.
On December 2, 1993, John and Candace Macko, Appellees, filed a complaint against Joseph B. Haver, who is also an Appellee, seeking recovery for damages allegedly sustained by Candace Macko as a result of Haver’s distribution of medications without any prescription. The complaint specifically alleged that Haver dispensed, among other things, Codeine, Demerol, barbiturates, sedative hypnotics, sleeping pills, Valium, and Tylox (Percocet), to Mrs. Macko, and that he ignored requests, which were made by both John Macko and Mrs. Macko’s mother, that he cease dispensing the drugs to her. The complaint also alleged that Mrs. Macko’s personal physician and psychologist contacted Haver and advised him not to provide her with any further medications, but that Haver continued to do so. Haver submitted the Mackos’ complaint to his insurance carrier, Mutual Benefit Insurance Company, Appellant.
Mutual Benefit filed a Complaint for Declaratory Judgment asserting that it was not required to defend or indemnify Haver because the insurance policy contained the following provision:
Section IIC, Liability Not Insured
6. ENDANGERMENT OR HARM
We do not cover bodily injury or property damage whether or not expected or intended by the insured, which is a consequence of an insured’s unllful harm or knowing endangerment. This does not prohibit modification of this provision if done by us in writing.
R.R. at 37a (emphasis omitted) (emphasis added). Mutual Benefit argued that Mrs. Macko’s injuries were a consequence of Haver’s “knowing endangerment” of her via his distribution of the contraband to her. Mutual Benefit also filed a motion for summary judgment against the Mackos on the same grounds as its declaratory action. The Mackos responded *538with their own motion for summary judgment. They argued that their complaint alleged negligence, not willful, knowing conduct, that the policy contained an endorsement which covered the type of conduct alleged in their complaint against Haver, and that any inconsistencies between the exclusionary language relied upon by Mutual Benefit and the endorsement must be resolved against Mutual Benefit, since it drafted the policy. The trial judge denied Mutual Benefit’s motion and gránted the Mackos’ motion, and, in doing so, held that Mutual Benefit was obligated to both defend Haver and indemnify him for any damages assessed pursuant to the Mackos’ underlying complaint.
A Superior Court panel affirmed with respect to Mutual Benefit’s duty to defend, but reversed with respect to its duty to indemnify, holding that it would be premature to decide that issue. Judge Saylor, now Justice Saylor, dissented from the panel’s decision, since, in his view, Mutual Benefit should not have been obligated to defend or indemnify Haver in the Mackos’ underlying lawsuit. We granted Mutual Benefit’s Petition for Allowance of Appeal and now reverse Superior Court’s Order requiring Mutual Benefit to defend Haver. We also hold that Mutual Benefit does not have a duty to indemnify Haver under the terms of its insurance contract with him.
A carrier’s duties to defend and indemnify an insured in a suit brought by a third party depend upon a determination of whether the third party’s complaint triggers coverage. General Accident Insurance Co. of America v. Allen, 547 Pa. 693, 706, 692 A.2d 1089, 1095 (1997); Wilson v. Maryland Casualty Co., 377 Pa. 588, 595, 105 A.2d 304, 307 (1954). Haver and the Mackos argue that coverage is triggered and that the knowing endangerment exclusion to coverage is not implicated by the Mackos’ complaint because the complaint does not contain allegations of willful or knowing misconduct by Haver, but instead, asserts claims of negligence in conduct that was below the standard of care required of a pharmacist. However, the particular cause of action that a complainant pleads is not determinative of whether coverage has been triggered. Instead it is necessary to look at the *539factual allegations contained in the complaint. See Scopel v. Donegal Mutual Insurance Co., 698 A.2d 602 (Pa.Super.1997); Aetna Casualty and Surety Co. v. Roe, 437 Pa.Super. 414, 422, 650 A.2d 94, 98 (1994). We agree with Mutual Benefit that to allow the manner in which the complainant frames the request for redress to control in a case such as this one would encourage litigation through the use of artful pleadings designed to avoid exclusions in liability insurance policies. Appellant’s Brief at 18. Accordingly, we now consider the factual allegations contained in the Mackos’ complaint to determine whether coverage was triggered under the policy at issue. More specifically, we must determine whether the factual allegations in the complaint fall within the knowing endangerment exclusion to coverage that is contained in the policy. Count One of the complaint avers that Haver provided Mrs. Macko with the numerous prescription medications even though she lacked prescriptions. It goes on to allege that Mrs. Macko’s family members, personal physician and psychologist contacted Haver and advised him to stop giving her the drugs, but that Haver nonetheless continued to do so. We find that these factual allegations against a pharmacist constitute “knowing endangerment” as a matter of law, and therefore the knowing endangerment exclusion in the policy prevents Mutual Benefit from having to defend or indemnify1 Haver.
In reaching this conclusion, we reject the argument that the policy is ambiguous because it contains, in conjunction with the exclusionary language, an endorsement providing coverage for “professional liability,” which is defined in the policy to include “malpractice.” The Mackos cite Blank’s Law Dictionary, Sixth Edition, 1991, for the definition of malprac*540tice, which, in the last line of its definition includes “any professional misconduct, unreasonable lack of skill or fidelity in professional or fiduciary duties, evil practice, or illegal or immoral conduct.” The Mackos, and to some degree Haver, conclude that this definition of malpractice is inconsistent with the language in the policy excluding coverage for knowing endangerment, and, therefore, the resultant ambiguity must be resolved against Mutual Benefit, as the drafter of the policy, and in favor of coverage. Their argument is that the terms evil practice, illegal conduct, and immoral conduct imply that intentional acts are a part of malpractice and therefore covered under the endorsement, while at the same time such intentional conduct contradicts the “knowing” portion of the knowing endangerment exclusion contained in the policy.
We reject this argument for a number of reasons. First, irrespective of how Black’s Law Dictionary defines the term “malpractice,” we have described malpractice as consisting of “a negligent or unskillful performance by a physician of the duties which are devolved incumbent upon him on account of his relations with his patients, or of a want of proper care and skill in the performance of a professional act.” Hodgson v. Bigelow, 335 Pa. 497, 504, 7 A.2d 338, 342 (1939).2 This definition does not extend to the evil and illegal conduct relied upon by the Mackos and Haver. Therefore, there is no ambiguity created by the use of that term in the endorsement providing coverage for professional liability and the knowing endangerment exclusion in the policy. Second, when we are interpreting a contract such as the insurance policy in this case, our duty is to “ascertain the intent of the parties as manifested by the language of the written agreement.” Standard Venetian Blind Co. v. American Empire Insurance Co., 503 Pa. 300, 305, 469 A.2d 563, 566 (1983). The context in which the term malpractice was used in the endorsement, as *541well as the more common usage of the term, support the conclusion that when Haver and Mutual Benefit entered into this contract neither party intended to have it cover conduct such as that alleged in the Mackos’ complaint (i.e., illegal distribution of prescription drugs). The definition of professional liability found in the endorsement states:
C. Professional liability includes error or omission, malpractice, or mistake in connection with rendering or failure to render professional services at your retail drug store.
R.R. at 46 (emphasis in original policy). This language clearly indicates that the term malpractice was intended to cover negligent conduct, rather than intentional misconduct as advocated by Appellees.3 Finally, any ambiguity arising from the use of the term malpractice in the endorsement, as a result of the potentially evil or illegal connotation that might be attributable to that term, is illusory, since it would be against the public policy of this Commonwealth to permit a carrier to offer insurance for damages assessed as a result of evil or illegal conduct.4
*542Haver argues that there is no evidence of record in this case to support Mutual Benefit’s allegation that Haver willfully harmed or knowingly endangered Mrs. Macko. As stated above, in determining whether a carrier has a duty to defend or indemnify an insured we look to the complaint filed against the insured. Thus, our determination that the factual allegations in the Mackos’ complaint against Haver constitute knowing endangerment as a matter of law, makes this argument moot, since there need not be evidence on the record for us to make this decision. For the same reason, we reject the Mackos’ argument that Haver’s deposition testimony denying that he ever intended to harm Mrs. Macko prevents the knowing endangerment language from barring coverage.5
For the reasons discussed above, we reverse that portion of Superior Court’s order requiring Mutual Benefit to defend Haver and affirm that portion of the order refusing to recognize a duty, on Mutual Benefit’s behalf, to indemnify Haver for any damages assessed against him in the Mackos’ action.
Justice SAYLOR did not participate in the consideration or decision of this case. Justice NIGRO files a Concurring Opinion in which Justice NEWMAN joins. Justice NEWMAN files a Concurring Opinion in which Chief Justice FLAHERTY joins.. Because we have determined that the Mackos’ factual allegations constitute knowing endangerment as a matter of law, and, therefore, Mutual Benefit need not defend Haver against the Mackos’ complaint, we do not find it premature to also find that, if proven, those same facts would still constitute knowing endangerment as a matter of law and Mutual Benefit would not have a duty to indemnify Haver either. See General Accident Insurance Co. of America v. Allen, at 706, 692 A.2d at 1095 (recognizing that the duty to defend is separate from and broader than the duty to indemnify).
. The fact that Hodgson involved a malpractice suit against a physician, rather than a pharmacist, has no bearing on the proposition for which we cite the case. Hodgson illustrates this Court's longstanding interpretation of the term "malpractice" as constituting a failure to exercise a proper level of care or skill, rather than including the evil or illegal conduct contained in the definition found in Black’s Law Dictionary.
. We disagree with Superior Court’s statements that "if an act is excluded [under the policy] simply because it was non-accidental, an insurance policy like the instant one would exclude coverage for virtually all claims against a profession. We think that this is beyond contemplation of the parties.” Slip Op. at 6. To the contrary, there are a plethora of claims that a policy such as this one would cover, notwithstanding the fact that it does not cover the particular claim in this case. For example, the policy would still cover claims stemming from a pharmacist’s accidental issuance of a prescription to the wrong customer, or a pharmacist who negligently adds too much or too little of a chemical to a mixture that is subsequently dispensed to a customer. We believe that it was beyond the contemplation of the parties that the policy would cover a pharmacist who continuously dispenses drugs to an individual without a prescription despite advice to the contrary from the individual’s personal physician.
. Such public policy may not preclude a pharmacist from obtaining coverage for the costs of defending suits based upon alleged illegal or evil conduct. However, no argument was presented that Haver thought he had purchased a policy covering such costs. Instead, the parties have only raised arguments disputing whether the policy covers the conduct alleged in the Mackos’ complaint. Accordingly, we express no opinion on the validity of a policy insuring "defense costs” related to a complaint alleging evil or illegal conduct.
. We likewise need not address the parties' arguments whether Haver’s guilty plea to federal drug charges has any bearing on this litigation, since we have based our decision solely upon the factual allegations in the Mackos’ complaint against Haver.