Some text from Minecraft Wiki used under Creative Commons Attribution-Share Alike License 3.0
|Health Points||10HP (5x )|
|Attack Strength||Varies by distance from Ghast and distance from center of explosion. Maximum damage: 17HP (8.5x )|
|Drops||Ghast Tear , Gunpowder|
When a Ghast finds a player, it will keep floating around, but it will face the player and start opening its red mouth and eyes and spitting Fire Charges whenever it has a clear shot. The only warning a player will get is the Ghast's high-pitched scream before the shot is fired. These fireballs create explosions and light nearby blocks on fire. Due to this, Ghasts can very quickly cover the landscape in fire. Ghasts will always float around randomly, unless a player comes within one chunk from one, which is when it will attempt to gain altitude, but keep shooting at the player. When wandering, Ghasts will make peaceful medium pitched sounds, but when fighting, its sounds will sound more like high pitched screeching noises. 
To defeat a Ghast, if you think you can get close enough, then it is best to stay behind walls as much as possible until you get close, when it will fly upwards, which is the easiest time to defeat a Ghast with a ranged weapon like a Bow . If you do not think that you can get within range to get the Ghast to fly upwards, then it is probably best to defeat it by knocking its Fire Charges back at it by left clicking while holding any item, which will not always hit, but is effective at defending and attacking at the same time. Alternatively, if you have been found by multiple Ghasts, then it is best to try and get one of the Ghasts between you and the other Ghast, and use the sword technique until one of them is defeated. Another tactic with a lone ghast is to use a fishing rod to draw it close enough to damage it with sword.